snapcraft updates don't download in an IPv6 + NAT64 environment
Metadata
Current evaluation
No evaluation has been recorded for this issue yet.
Issue body
A common environment is IPv6 only with compatibility to IPv4 networks provided by NAT64, which includes the Mythic Beasts Raspberry Pi cloud and various IPv6 only VM offerings. In this environment IPv4 only services (e.g. api.snapcraft.io) have IPv6 addresses synthesized to allow connectivity. e.g.
$ telnet api.snapcraft.io 443
Trying 2a00:1098:0:80:1000:3a:5bbd:5c26...
Connected to api.snapcraft.io.
The snap installer appears to ignore this connectivity option and insist on using IPv4 which won't work and doesn't fallback (or better yet, start with) native IPv6.
$ sudo snap install canonical-livepatch
error: cannot install "canonical-livepatch": persistent network error: Post
https://api.snapcraft.io/v2/snaps/refresh: dial tcp 91.189.92.20:443: connect: network is unreachable
IPv6 + NAT64 is the required to be supported for iOS applications.
Evaluation history
No evaluation history available.